package com.person.jiaiplan.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "schedule_plan_logs")
public class SchedulePlanLogs {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    /**
     * 关联的计划Id
     */
    @TableField(value = "schedule_id")
    private String scheduleId;

    /**
     * 计划打卡时间
     */
    @TableField(value = "plan_lock_time")
    private String planLockTime;

    /**
     * 计划开始时间
     */
    @TableField(value = "plan_start_time")
    private Date planStartTime;

    /**
     * 计划完成时间
     */
    @TableField(value = "plan_finish_time")
    private Date planFinishTime;

    /**
     * 计划次数
     */
    @TableField(value = "plan_counts")
    private Integer planCounts;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 计划规则 1 每周几天 2 单双日 3 指定日期
     */
    @TableField(value = "plan_rules")
    private Integer planRules;

    /**
     * 计划规则值 每周几天传 1,2,3,4,5,6,7  单双日传 1,2  指定日期传 2020-01-01,2020-01-02
     */
    @TableField(value = "rule_values")
    private String ruleValues;
}